<template>
  <div class="attr-list">
    <CommonAttr></CommonAttr>
    <el-form>
      <el-form-item label="镜像翻转">
        <div style="clear: both">
          <el-checkbox
            v-model="curComponent.propValue.flip.horizontal"
            label="horizontal"
            >水平翻转</el-checkbox
          >
          <el-checkbox
            v-model="curComponent.propValue.flip.vertical"
            label="vertical"
            >垂直翻转</el-checkbox
          >
        </div>
      </el-form-item>
      <el-form-item label="图片链接">
        <el-input
          v-model="curComponent.propValue.url"
          type="textarea"
          :rows="3"
          style="clear: both"
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import CommonAttr from "@/custom-component/common/CommonAttr.vue";

export default {
  components: { CommonAttr },
  computed: {
    curComponent() {
      console.log(
        "this.$store.state.curComponent :>> ",
        this.$store.state.curComponent
      );
    //   this.$store.commit("recordSnapshot");
      return this.$store.state.curComponent;
    },
  },
};
</script>
